package sctu.edu.java.year2016.team07.nieying.practice.Jsoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;


import java.io.IOException;

/**
 * Created by Administrator on 2016/6/13 0013.
 */
public class SctuClient {
    public static void main(String[] args) {


        try {
            Document document = Jsoup.connect("http://www.sctu.edu.cn").get();

            Elements elements=document.select("head");
            System.out.println(elements.get(0));
           System.out.println(document.body());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}